<html>
    <head>
        <title>Trang quản lý Thời khóa biểu</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="../css/quantritin.css" type="text/css" rel="stylesheet" />
        <link rel="shortcut icon" href="../images/banner.gif" />
        <style type="text/css">
<!--
.style2 {font-size: 18px}
-->
        </style>
</head>
     <script>
        function changePass(){
            myWindow = window.open("changePass.php","New window","top=200,left=400,width=400,height=200,menubar=1,scrolling=1,toolbar=1,status='test'");
        }
</script>
    <body>
    <div align="center">
      <legend><font size=5 color=#4169E1><b>Quản lý Thời khóa biểu</b></font></legend>
    </div>
    <div align="left">

<?php
$sql = "select * from thoi_khoa_bieu";
$result = mysql_query($sql);

?>
  <p><a href="?mod=qltkb&act=insert" class="style2">Thêm mới Thời khóa biểu</a></p>
  </div>
<table width="878" border="1" align="center">
  <tr align="center" valign="middle">
    <td width="55"><strong>STT</strong></td>
    <td width="151"><strong>Mã Thời khóa biểu </strong></td>
    <td width="93"><strong>Kỳ </strong></td>
    <td width="98"><strong>Năm</strong></td>
    <td width="107"><strong>Từ Ngày </strong></td>
    <td width="106"><strong>Đến Ngày </strong></td>
    <td width="66">&nbsp;</td>
    <td width="72">&nbsp;</td>
    <td width="72"><form id="form1" name="form1" method="post" action="">
      <input name="Submit" type="submit" id="Submit" value="Xóa" />
    </form>    </td>
  </tr>
  <?php
 $i=1; 
 while($row = mysql_fetch_array($result))
 {
  ?>
  <tr>
    <td align="center"><?php echo $i ?></td>
    <td align="center"><?php echo $row["maTKB"] ?></td>
    <td align="center"><?php echo $row["ky"] ?></td>
	<td align="center"><?php echo $row["nam"] ?></td>
	<td align="center"><?php echo $row["tuNgay"] ?></td>
	<td align="center"><?php echo $row["denNgay"] ?></td>   
    <td align="center"><a href="?mod=qltkb&act=update&id=<?php echo $row["ID"] ?>">Sửa</a></td>
    <td align="center"><a href="?mod=qltkb&act=delete&id=<?php echo $row["ID"] ?>">Xóa</a></td>
    <td align="center"><input type="checkbox" name="xoa[]" value="<?php echo $row["ID"] ?>" /></td>
  </tr>
 <?php 
 $i++;
 } ?> 
</table>
    